package com.hq.shop12auth.feign.api;


import com.hq.commons.ov.Customer;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author: HQ
 * @return:
 * @time: 2021/7/17 9:56
 * @description:
 */
@FeignClient(name = "user", path = "user")
public interface UserService {

    @GetMapping("/getUserByName")
    public Customer getUserByName(@RequestParam("username") String name);

    @PostMapping("/addUser")
    public Boolean addUser(Customer customer);

    @GetMapping("/getUserById")
    Customer getUserById(@RequestParam("uuid") String uuid);
}
